Skip to content

Return event name from getVendorPrefixedEventName#11951

Merged
aweary merged 1 commit intofacebook:masterfrom
aweary:simplify-get-vendor-prefix
Jan 2, 2018
Merged

Return event name from getVendorPrefixedEventName#11951
aweary merged 1 commit intofacebook:masterfrom
aweary:simplify-get-vendor-prefix

Conversation

@aweary
Copy link
Copy Markdown
Contributor

@aweary aweary commented Jan 2, 2018

Instead of relying on getVendorPrefixedEventName returning an empty string for un-prefixed events, just return the event name. That way we don't have to duplicate the string literals and can remove the ||. Saves a few bytes! 📦

@aweary aweary merged commit 22e2bf7 into facebook:master Jan 2, 2018
@aweary aweary deleted the simplify-get-vendor-prefix branch January 2, 2018 18:46
yenshih pushed a commit to yenshih/react that referenced this pull request Jan 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants